package EX2;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Scanner;

public class demo2_2 {
    public static void main(String[] args) throws FileNotFoundException {
        File f=new File("C:/filea/a.txt");
        InputStream is=new FileInputStream(f);
        Scanner scanner=new Scanner(is);
        String s=scanner.next();
        System.out.println(s);
    }
}
